package demo;

import java.util.Arrays;

class People{
    public String name;
    public int age;

    public People(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
public class TestDemo {
    public static void main(String[] args) {
        People[] p = {
                new People("zhangsan",18),
                new People("lisi",20)
        };
        System.out.println(Arrays.toString(p));

    }
}
/*int[] array = {1,2,3,4,5};
        String[] s = {"abc","dec"};
        System.out.println(Arrays.toString(s));*/